<?php
class ZLeadItem{
    /**
     * @var String
     */
    private $threadTitle;
    /**
     * @var String
     */
    private $text;
    /**
     * @var String
     */
    private $source;
    /**
     * @var String
     */
    private $url;
    /**
     * @var String
     */
    private $author;
    /**
     * @var String
     */
    private $postTitle;
    /**
     * @var String
     */
    private $time;
    /**
     * @var String
     */
    private $authorUrl;
    /**
     * @var Int
     */
    private $numberOfReplies;
    /**
     * @var Int
     */
    private $numberOfLike;
    /**
     * @var Int
     */
    private $id;

    /**
     * @param $threadTitle
     * @param $text
     * @param $source
     * @param $url
     * @param $author
     * @param $postTitle
     * @param $time
     * @param $authorUrl
     * @param $numberOfReplies
     * @param $numberOfLike
     * @param $id
     */
    function __construct($threadTitle, $text, $source, $url, $author, $postTitle, $time, $authorUrl, $numberOfReplies, $numberOfLike, $id) {
        $this->threadTitle      = $threadTitle;
        $this->text             = $text;
        $this->source           = $source;
        $this->url              = $url;
        $this->author           = $author;
        $this->postTitle        = $postTitle;
        $this->time             = $time;
        $this->authorUrl        = $authorUrl;
        $this->numberOfReplies  = $numberOfReplies;
        $this->numberOfLike     = $numberOfLike;
        $this->id               = $id;
    }

    /**
     * @return Thread Title
     */
    public function getThreadTitle(){
        return $this->threadTitle;
    }

    /**
     * @return Text
     */
    public function getText(){
        return $this->text;
    }

    /**
     * @return Source
     */
    public function getSource(){
        return $this->source;
    }

    /**
     * @return URL of Thread
     */
    public function getURL(){
        return $this->url;
    }

    public function getAuthorURL() {
        return $this->authorUrl;
    }

    /**
     * @return Author of thread
     */
    public function getAuthor(){
        return $this->author;
    }

    /**
     * @return post Title
     */
    public function getPostTitle(){
        return $this->postTitle;
    }

    /**
     * @return return Time
     */
    public function getTime(){
        return $this->time;
    }

    /**
     * @return Number of reply
     */
    public function getNumberOfReplies(){
        return $this->numberOfReplies;
    }

    /**
     * @return Number of like
     */
    public function getNumberOfLike(){
        return $this->numberOfLike;
    }

    /**
     * @return int
     */
    public function getId(){
        return $this->id;
    }
}

?>